/************************************************************************************************************************
 Name of the class: PMF.java
 
 Author: Saiaswin Saikannan
 
 Role: An app interacts with JDO using an instance of the PersistenceManager class. You get this instance by instantiating 
 and calling a method on an instance of the PersistenceManagerFactory class. The factory uses the JDO configuration to create 
 PersistenceManager instances.

 Because a PersistenceManagerFactory instance takes time to initialize, an app should reuse a single instance. To enforce this, 
 an exception is thrown if the app instantiates more than one PersistenceManagerFactory (with the same configuration name). 
 An easy way to manage the PersistenceManagerFactory instance is to create a singleton wrapper class with a static instance.
 
 ***********************************************************************************************************************/


package com.request;

import javax.jdo.JDOHelper;
import javax.jdo.PersistenceManagerFactory;

public final class PMF {
	private static final PersistenceManagerFactory pmfInstance = JDOHelper
			.getPersistenceManagerFactory("transactions-optional");

	private PMF() {
	}

	public static PersistenceManagerFactory get() {
		return pmfInstance;
	}
}